{% extends "questions/base.html" %}
{# L10n: {t} is the title of the question. #}
{% set title = _('Delete Question | {t} | Firefox Support Forum')|f(t=question.title) %}
{% set crumbs = [(url('questions.home'), _('Support Forum')),
                 (url('questions.details', question.id), question.title),
                 (None, _('Delete question'))] %}

{% block content %}
  <div class="grid_12">
    <article class="main">
      <div class="to-delete highlight-box">
        <h1>{{ _('Are you sure you want to delete this question?') }}</h1>
        <label>{{ _('Title') }}</label>
        <div class="content">{{ question.title }}</div>
        <label>{{ _('Creator') }}</label>
        <div>{{ question.creator }}</div>
        <label>{{ _('Date') }}</label>
        <div>{{ datetimeformat(question.created, format='longdatetime') }}</div>
        <label>{{ _('Number of Answers') }}</label>
        <div>{{ question.num_answers }}</div>

        <form action="{{ url('questions.delete', question.id) }}" method="post">
          {% csrf_token %}
          <p>
            {{ _('You are about to permanently delete this question. <strong>This cannot be undone!</strong> Are you sure you want to continue?')|safe }}
          </p>
          <input type="submit" class="btn" value="{{ _('Delete') }}" />
          <a href="{{ url('questions.details', question.id) }}">{{ _('Cancel') }}</a>
        </form>
      </div>
    </article>
  </div>
{% endblock %}

{% block side %}
{% endblock %}
